#include <cgic.h>
int cgiMain() {
    char usernameStr[128];
    char pwdStr[128];
    // 接收数据的方式cgiQueryString，只接收get请求
    cgiFormString("username",usernameStr,128);
    cgiFormString("pwd",pwdStr,128);
    cgiHeaderContentType("text/html");
	fprintf(cgiOut, "<HTML><HEAD> <meta charset=\"UTF-8\"> \n");
	fprintf(cgiOut, "<TITLE>cgic测试</TITLE></HEAD>\n");
	fprintf(cgiOut, "<BODY><H1>操作成功!!!请求数据为username=%s,pwd=%s</H1>\n",usernameStr,pwdStr);
    fprintf(cgiOut,"</BODY></HTML>");
    return 0;
}